/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartFootBath {
    static categoryCode = '010060001';

    static categoryName = '足浴盆';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartFootBath.categoryCode;
    }

    get categoryName() {
        return SmartFootBath.categoryName;
    }

    getConstantTempSwitch(params) {
        return command({
            method: 'getConstantTempSwitch',
            methodId: 'ptRSe8HI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemp(params) {
        return command({
            method: 'getCurrentTemp',
            methodId: 'phEqB28z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMassageMode(params) {
        return command({
            method: 'getMassageMode',
            methodId: 'p3de1Yh9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMassageSwitch(params) {
        return command({
            method: 'getMassageSwitch',
            methodId: 'pdN7WcFE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pDrht3PR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTemp(params) {
        return command({
            method: 'getTargetTemp',
            methodId: 'pgh07J4W',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetWorkingHours(params) {
        return command({
            method: 'getTargetWorkingHours',
            methodId: 'pkpDbD0n',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkingHours(params) {
        return command({
            method: 'getWorkingHours',
            methodId: 'pz933sqM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setConstantTempSwitch(params) {
        return command({
            method: 'setConstantTempSwitch',
            methodId: 'pUPQoZ9q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMassageMode(params) {
        return command({
            method: 'setMassageMode',
            methodId: 'pGoxGSG1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMassageSwitch(params) {
        return command({
            method: 'setMassageSwitch',
            methodId: 'pZgRqLok',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH39Xjx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTemp(params) {
        return command({
            method: 'setTargetTemp',
            methodId: 'ppAXzdab',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetWorkingHours(params) {
        return command({
            method: 'setTargetWorkingHours',
            methodId: 'p1vZOVdo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartFootBath;
